package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("userRole")
@TableName(value = "user_role")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *用户角色ID
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 角色ID
    */
    @TableField(value = "role_id")
    private Integer roleId;
    /**
    * 用户ID
    */
    @TableField(value = "user_id")
    private Integer userId;
    /**
    * 创建时间
    */
    @TableField(value = "create_time")
    private Date createTime;
}